package com.boe.hbd.client.domain;

import com.boe.hbd.client.annotation.Entity;
import com.boe.hbd.client.annotation.EntityField;
import com.boe.hbd.client.utils.GpsPoint;
import com.google.android.maps.GeoPoint;

@Entity(table = "landscape")
public class Landscape extends BaseEntity {

    private static final long serialVersionUID = 484852662868962085L;

	@EntityField(column = "latitude")
	private Double latitude;

	@EntityField(column = "longtitude")
	private Double longtitude;

	@EntityField(column = "description")
	private String description;

	public Landscape() {
		super();
	}
	
	public Landscape(Double latitude, Double longtitude,String name, String description) {
	    super();
	    this.latitude = latitude;
	    this.longtitude = longtitude;
	    this.description = description;
	    this.name = name ;
    }

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongtitude() {
		return longtitude;
	}

	public void setLongtitude(Double longtitude) {
		this.longtitude = longtitude;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public GeoPoint getGeoPoint() {
		return getGpsPoint().toGeoPoint() ;
	}
	
	public GpsPoint getGpsPoint() {
		return new GpsPoint( latitude , longtitude);
	}
}
